package com.linksfield.topup;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;

/**
 * SpringBoot项目入口
 *
 * @author lm
 * @date 2019/11/21
 */

// 开启缓存注解
@EnableCaching
//项目启动的注解：并且排除自动注入数据源的配置，可以自定义配置多数据源
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})

@MapperScan("com.linksfield.topup.mapper")

public class TopupApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(TopupApplication.class, args);
    }

}
